package kr.pe.osdev.dao;

import java.util.List;

import kr.pe.osdev.domain.Commentary;
import kr.pe.osdev.domain.Question;

import org.springframework.dao.DataAccessException;

public interface CommentaryDao {
    public Commentary add(Commentary commentary) throws DataAccessException;
    public int modify(Commentary commentary) throws DataAccessException;
    public Commentary remove(Commentary commentary) throws DataAccessException;
    public List<Commentary> findList() throws DataAccessException;
    public Commentary findBySid(Commentary commentary) throws DataAccessException;
    public Commentary findByQuestion(Question question) throws DataAccessException;
    public int count() throws DataAccessException;
}